from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
register = template.Library()

@register.filter
@stringfilter
def boldsentence(value):
    parts = value.split(".", 1)
    if len(parts) == 1:
        first, rest = value, ""
    else:
        first, rest = parts
    return mark_safe("<strong>%s.</strong>%s" % (first, rest))


